home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / minigl.lha / MiniGL / include / mgl / vertexbuffer.h < prev   
Encoding:
C/C++ Source or Header  |  2002-04-28  |  1.0 KB  |  67 lines

  1. /*
  2.  * $Id: vertexbuffer.h,v 1.1.1.1 2000/04/07 19:44:51 tfrieden Exp $
  3.  *
  4.  * $Date: 2000/04/07 19:44:51 $
  5.  * $Revision: 1.1.1.1 $
  6.  *
  7.  * (C) 1999 by Hyperion
  8.  * All rights reserved
  9.  *
  10.  * This file is part of the MiniGL library project
  11.  * See the file Licence.txt for more details
  12.  *
  13.  */
  14.  
  15. #ifndef __VERTEXBUFFER_H
  16. #define __VERTEXBUFFER_H
  17.  
  18. #ifdef __VBCC__
  19. #pragma amiga-align
  20. #endif
  21.  
  22. #include <Warp3D/Warp3D.h>
  23.  
  24. #ifdef __VBCC__
  25. #pragma default-align
  26. #endif
  27.  
  28.  
  29. struct TCoord_t
  30. {
  31.     W3D_Float    s,t;
  32.  
  33. };
  34.  
  35. struct MGLVertex_t {
  36.  
  37.     W3D_Vertex    v; //currently 64 bytes
  38.  
  39.     struct TCoord_t    tcoord; //virtual unit
  40.     ULONG        outcode;
  41.  
  42.     int        xi,yi,zi;
  43.  
  44.     float        bx,by,bz,bw;
  45.     GLfloat        q;
  46.  
  47.     GLuint        normal;   //NormalBuffer-index
  48.  
  49.     GLuint        cbuf_pos; //unused (16 byte align)
  50.     GLubyte        color[4]; //for vertexarrays
  51. };
  52.  
  53. typedef struct MGLVertex_t MGLVertex;
  54.  
  55. enum {
  56.     MGL_CLIP_NEGW   =   1<<0,
  57.     MGL_CLIP_TOP    =   1<<1,
  58.     MGL_CLIP_BOTTOM =   1<<2,
  59.     MGL_CLIP_LEFT   =   1<<3,
  60.     MGL_CLIP_RIGHT  =   1<<4,
  61.     MGL_CLIP_FRONT  =   1<<5,
  62.     MGL_CLIP_BACK   =   1<<6
  63. };
  64.  
  65.  
  66. #endif
  67.